﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using HPIT_Library_DAL;
using HPIT_Library_Modal;

namespace HPIT_Library_BLL
{
    public class userManger
    {
        public static DataTable Select(string MemberName = "", string MemberPhone = "")
        {
            return HPIT_Library_DAL.userSerives.Select(MemberName, MemberPhone);
        }
        public static member SelectID(int id)
        {
            return HPIT_Library_DAL.userSerives.SelectID(id);
        }
        public static int Update(member member)
        {
            return HPIT_Library_DAL.userSerives.Update(member);
        }
        public static int AddUser(member member)
        {
            return HPIT_Library_DAL.userSerives.AddUser(member);
        }
        public static List<member> SelectProc(string MemberName, string MemeberPhone)
        {
            return HPIT_Library_DAL.userSerives.SelectProc(MemberName, MemeberPhone);
        }
        public static List<member> GetSelectProc(MemberModel serchModel, int PageIndex, int PageSize, ref int TotalCount)
        {
            return HPIT_Library_DAL.userSerives.GetSelectProc(serchModel,PageIndex,PageSize,ref TotalCount);
        }
    }
}
